package cn.tuling.org.service.impl;

import cn.tuling.org.domain.User;
import cn.tuling.org.mapper.LoginUserMapper;
import cn.tuling.org.service.LoginUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class LoginUserServiceImpl implements LoginUserService {

    @Autowired
    private LoginUserMapper loginUserMapper;

    @Override
    public User findLoginUser(String username) {
        System.out.println(loginUserMapper.findLoginUser(username));
        return loginUserMapper.findLoginUser(username);
    }
}
